import request from '@/utils/request'

// 查询项目列表
export function listAppProject(query) {
    return request({
        url: '/customer/v1/app/project/page',
        method: 'post',
        data: query
    })
}

// 查询项目详细
export function getAppProject(id, lang) {
    return request({
        url: '/customer/v1/app/project?id=' + id + '&lang=' + lang,
        method: 'get'
    })
}

// 新增项目
export function addAppProject(data) {
    return request({
        url: '/customer/v1/app/project',
        method: 'post',
        data: data
    })
}

// 修改项目
export function updateAppProject(data) {
    return request({
        url: '/customer/v1/app/project',
        method: 'put',
        data: data
    })
}

// 删除项目
export function delAppProject(id) {
    return request({
        url: '/customer/v1/app/project/' + id,
        method: 'delete'
    })
}
